<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to you under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<TITLE>Example Programs</TITLE>
<link rel="stylesheet" type="text/css" href="../csfull.css" title="sample">
</HEAD>
<BODY>

<H1>The Getting Started With Derby Sample Programs</H1>
<P>The programs in this directory are described in the the <A href="../../../docs/html/getstart/index.html">Getting Started With Derby</A> manual. Please see this document for more information.</P>
<UL>
  <LI>
  <p class="BodyRelative"><A href="WwdEmbedded.java">WwdEmbedded.java</A></p>
  <p class="BodyRelative">A very basic JDBC program that uses Derby. This is the primary program
  example used in the JDBC sections of Getting Started With Derby. It is described
  in detail in that document.</p>
  </LI>
  <LI><p class="BodyRelative"><A href="WwdClientExample.java">WwdClientExample.java</A></p>
	<p class="BodyRelative">This is an example of what the WwdClient.java program created as part
  of one of the Getting Started With Derby activities will look like. A working copy of that code
  is provided here for people interested in examining the code without performing
  the edits described in the activity.</p></LI>
</UL>
<UL>
  <LI><A href="WwdUtils.java">WwdUtils.java</A>
</UL>
<BLOCKQUOTE>These are utility methods used by the Getting Started With Derby programs that
are not described in the document. The processing performed by these methods
does not demonstrate basic JDBC processing and so is outside the scope
of an introductory document like Getting Started With Derby. These methods provide
environment validation and manage user input so the program is more robust.
The code is provided here for people interested in examining the processing.
It contains three methods:<BR>
<OL>
  <LI>getWishItem - Prompts for user input and returns the entered text, if any,
  to the calling program. Handles I/O Exceptions and insists that some text
  is entered.
  <LI>wwdChk4Table - Checks if the table needed by the program already exists
  and is defined properly. Handles certain errors that could occur.
  <LI>main - Allows standalone testing of the getWishItem method.
</OL>
</BLOCKQUOTE>
</BODY>
</HTML>
